package com.szpx.litianjian.service.impl;

import com.szpx.litianjian.entity.StudentDetailInfo;
import com.szpx.litianjian.entity.StudentInfo;
import com.szpx.litianjian.mapper.StudentMapper;
import com.szpx.litianjian.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    StudentMapper studentMapper;

    @Override
    public StudentInfo getStudentInfoById(Integer id) {
        return studentMapper.getStudentInfoById(id);
    }

    @Override
    public StudentDetailInfo getStudentDetailInfoByStudentId(Integer stuId) {
        return studentMapper.getStudentDetailInfoByStudentId(stuId);
    }
}
